package router

import (
	"github.com/labstack/echo/v4"
	"longmen/server/internal/api"
)

//有料
func initExpertRoute(group *echo.Group, base api.Controller, authFunc echo.MiddlewareFunc) {
	group.POST("/expert/getExpertCompMenu", base.GetExpertCompMenu)
	group.POST("/expert/getExpertPlanList", base.GetExpertPlanList)
	group.POST("/expert/getExpertFromMatchList", base.GetExpertFromMatchList)
	group.POST("/expert/getExpertPlan", base.GetExpertPlan, authFunc)
	group.POST("/expert/payExpertPlanFee", base.PayExpertPlanFee, authFunc)

	//v2开始增加以下方法
	group.POST("/expert/getHotComp", base.GetHotComp)
	group.POST("/expert/getMatchLikeSearch", base.GetMatchLikeSearch)
	group.POST("/expert/getExpertList", base.GetExpertList, authFunc)
	group.POST("/expert/getExpertById", base.GetExpertById, authFunc)
	group.POST("/expert/attentionExpert", base.AttentionExpert, authFunc)
}
